using System.Windows;
using System.Windows.Controls;

namespace CustomPlate
{
	public class BaseControl : Control
	{
		public static readonly DependencyProperty IsSelectedProperty;

		public static readonly DependencyProperty TextProperty;

		public bool IsSelected
		{
			get
			{
				return (bool)GetValue(IsSelectedProperty);
			}
			set
			{
				SetValue(IsSelectedProperty, value);
			}
		}

		public string Text
		{
			get
			{
				return (string)GetValue(TextProperty);
			}
			set
			{
				SetValue(TextProperty, value);
			}
		}

		static BaseControl()
		{
			IsSelectedProperty = DependencyProperty.Register("IsSelected", typeof(bool), typeof(BaseControl), new PropertyMetadata(false));
			TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(BaseControl), new PropertyMetadata(string.Empty));
			FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof(BaseControl), new FrameworkPropertyMetadata(typeof(BaseControl)));
		}
	}
}
